<template>
  <page-header-wrapper :title="false">
    <a-card title="官方状态管理" style="width: 700px">
      <s-table
        bordered
        ref="matTable"
        size="middle"
        :row-key="(record) => record.mat_id"
        :columns="matColumns"
        :data="matData"
      >
        <template slot="action" slot-scope="text,record">
          <a-button size="small" type="link" icon="edit" @click="onMat(record.mat_id)">编辑</a-button>
          <a-button size="small" type="link" icon="delete" @click="delMat(record.mat_id)">删除</a-button>
        </template>
      </s-table>
    </a-card>
  </page-header-wrapper>
</template>

<script>
import businessColumns from '@/columns/business'

export default {
  name: 'PublicMat',
  data () {
    return {
      matColumns: businessColumns.mat_columns
    }
  }
}
</script>

<style scoped>

</style>
